﻿using System.Web.Mvc;
using Dqaqs.Data;

namespace Dqaqs.Web.Common
{
	public class ProjectContext
	{
		private readonly Controller _controller;

		public ProjectContext(Controller controller)
		{
			_controller = controller;
		}

		public Project Project
		{
			get { return _controller.Session["_Project"] != null ? (Project) ( _controller.Session["_Project"]) : null; }
		}
	}
}